package com.jch.mp.manner1.domain.message;

import com.jch.mp.manner1.domain.protocol.Command;
import com.jch.mp.manner1.domain.protocol.Packet;

public class ComplexMessage extends Packet {

    private int msgId;
    private Object data;

    public ComplexMessage() {
    }

    public ComplexMessage(int msgId, Object data) {
        this.msgId = msgId;
        this.data = data;
    }

    public int getMsgId() {
        return msgId;
    }

    public void setMsgId(int msgId) {
        this.msgId = msgId;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public byte getCommand() {
        return Command.COMPLEX_MESSAGE;
    }
}
